﻿using System;

namespace Syspetro.Deploy.Jwt
{
    public interface IJwtService
    {
        /// <summary>
        /// 用户信息
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        (Guid, string) GetToken(IUserAuth userInfo);
        /// <summary>
        /// 刷新Token
        /// </summary>
        /// <param name="tokenId"></param>
        /// <returns></returns>
        string RefreshToken(Guid tokenId);
        /// <summary>
        /// 移除Token
        /// </summary>
        /// <param name="tokenid"></param>
        /// <returns></returns>
        void RemoveToken(Guid tokenid);
    }
}
